package com.aij.ims;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"com.aij.ims"})
public class Main implements ApplicationListener<ApplicationReadyEvent> {
    public static void main(String[] args){
        ConfigurableApplicationContext applicationContext = SpringApplication.run(Main.class, args);
        applicationContext.registerShutdownHook();
    }

    //服务启动后的初始化
    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {

    }
}
